var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(3004411, "oid=374262", -1, -147, 0, -51, 49, 1, false, 0, false);
            cm.fieldEffect_PlayBGM("Bgm53/SanctuaryOfMitra", 0, 0);
            cm.npc_ChangeController(3004431, "oid=770669", -520, -50, 12, -570, -470, 0, true, 0, false);
            cm.npc_SetSpecialAction("oid=770669", "summon", 0, 0);
            cm.npc_ChangeController(3004433, "oid=770670", -590, -50, 17, -640, -540, 0, true, 0, false);
            cm.npc_SetSpecialAction("oid=770670", "summon", 0, 0);
            cm.npc_ChangeController(3004430, "oid=770671", -50, -70, 24, -100, 0, 0, true, 0, false);
            cm.npc_SetSpecialAction("oid=770671", "summon", 0, 0);
            cm.onTeleport(0, 3, cm.getPlayer().getId(), -448, -50);
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.setStandAloneMode(true);
            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 2000, 0, 0, -85);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(1500)
            } else {
                if (status === a++) {
                    cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
                    cm.inGameDirectionEvent_AskAnswerTime(1200)
                } else {
                    if (status === a++) {
                        cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1000, 0);
                        cm.inGameDirectionEvent_AskAnswerTime(1400)
                    } else {
                        if (status === a++) {
                            cm.sendNormalTalk_Bottom("#face0#面对任何境遇也绝不心生猜疑。", 37, 3004430, false, true)
                        } else {
                            if (status === a++) {
                                cm.sendNormalTalk_Bottom("#face0#面临任何诱惑都能够安分守己。", 37, 3004430, false, true)
                            } else {
                                if (status === a++) {
                                    cm.sendNormalTalk_Bottom("#face0#身为光荣的圣骑士，我再次起誓，将永远效忠于您。", 37, 3004430, true, true)
                                } else {
                                    if (status === a++) {
                                        cm.inGameDirectionEvent_AskAnswerTime(1500)
                                    } else {
                                        if (status === a++) {
                                            cm.inGameDirectionEvent_PushScaleInfo(2000, 0, 2000, 2000, -428, -60)
                                        } else {
                                            if (status === a++) {
                                                cm.inGameDirectionEvent_AskAnswerTime(2500)
                                            } else {
                                                if (status === a++) {
                                                    cm.sendNormalTalk_Bottom("#face0#其他天族的羽毛？除塞伦外还有其他天族在圣地吗？", 37, 3004431, false, true);
                                                    cm.effect_Voice("Voice5.img/CH2/Idea/92", 128)
                                                } else {
                                                    if (status === a++) {
                                                        cm.sendNormalTalk_Bottom("#face1#难道果真如预言所说，到那时，天族就会出现吗……", 37, 3004433, true, true);
                                                        cm.effect_Voice("Voice5.img/CH2/Carlyle/66", 128)
                                                    } else {
                                                        if (status === a++) {
                                                            cm.sendNormalTalk_Bottom("#face0#可如果真是这样，守备队那边为什么没有任何消息呢？\r\n那人在入城时就应该会被盘查的啊？", 37, 3004431, true, true);
                                                            cm.effect_Voice("Voice5.img/CH2/Idea/93", 128)
                                                        } else {
                                                            if (status === a++) {
                                                                cm.sendNormalTalk_Bottom("#face1#是啊……也许有什么隐情吧。", 37, 3004433, true, true);
                                                                cm.effect_Voice("Voice5.img/CH2/Carlyle/67", 128)
                                                            } else {
                                                                if (status === a++) {
                                                                    cm.sendNormalTalk_Bottom("#face0#嗯……这可有些奇怪。", 37, 3004431, true, true);
                                                                    cm.effect_Voice("Voice5.img/CH2/Idea/94", 128)
                                                                } else {
                                                                    if (status === a++) {
                                                                        cm.sendNormalTalk_Bottom("#face0#与其让不知敌友的家伙来成为圣剑之主，还不如让我们这位迂腐又乖僻的剑之守护者来做这个主人呢。", 37, 3004431, true, true);
                                                                        cm.effect_Voice("Voice5.img/CH2/Idea/95", 128)
                                                                    } else {
                                                                        if (status === a++) {
                                                                            cm.sendNormalTalk_Bottom("#face0#啊……哈，你还真是直言不讳。", 37, 3004433, true, true);
                                                                            cm.effect_Voice("Voice5.img/CH2/Carlyle/68", 128)
                                                                        } else {
                                                                            if (status === a++) {
                                                                                cm.sendNormalTalk_Bottom("#face0#难道不是吗。既然被任命为剑之守护者，说明已经得到了教团的认可。何必再为此多生事端。", 37, 3004431, true, true);
                                                                                cm.effect_Voice("Voice5.img/CH2/Idea/96", 128)
                                                                            } else {
                                                                                if (status === a++) {
                                                                                    cm.sendNormalTalk_Bottom("#face0#两者不可混为一谈……", 37, 3004433, true, true);
                                                                                    cm.effect_Voice("Voice5.img/CH2/Carlyle/69", 128)
                                                                                } else {
                                                                                    if (status === a++) {
                                                                                        cm.sendNormalTalk_Bottom("？", 57, 0, true, true)
                                                                                    } else {
                                                                                        if (status === a++) {
                                                                                            cm.sendNormalTalk_Bottom("#face0#成为圣剑的主人，就意味着是被太阳神密特拉亲自选中的人。", 37, 3004433, true, true);
                                                                                            cm.effect_Voice("Voice5.img/CH2/Carlyle/70", 128)
                                                                                        } else {
                                                                                            if (status === a++) {
                                                                                                cm.sendNormalTalk_Bottom("#face0#此人会拥有超出大神官之上的影响力。", 37, 3004433, true, true);
                                                                                                cm.effect_Voice("Voice5.img/CH2/Carlyle/71", 128)
                                                                                            } else {
                                                                                                if (status === a++) {
                                                                                                    cm.sendNormalTalk_Bottom("#face0#如果此人与教团嫌隙尚存的话，教团也会感到为难吧。\r\n塞伦正好就是这样的情况。", 37, 3004433, true, true);
                                                                                                    cm.effect_Voice("Voice5.img/CH2/Carlyle/72", 128)
                                                                                                } else {
                                                                                                    if (status === a++) {
                                                                                                        cm.sendNormalTalk_Bottom("既然如此，她被任命为剑之守护者……", 57, 0, true, true)
                                                                                                    } else {
                                                                                                        if (status === a++) {
                                                                                                            cm.sendNormalTalk_Bottom("#face0#因为她不可能成为圣剑之主……", 37, 3004431, true, true);
                                                                                                            cm.effect_Voice("Voice5.img/CH2/Idea/97", 128)
                                                                                                        } else {
                                                                                                            if (status === a++) {
                                                                                                                cm.sendNormalTalk_Bottom("#face0#一语中的。不愧是伊黛娜大人。", 37, 3004433, true, true);
                                                                                                                cm.effect_Voice("Voice5.img/CH2/Carlyle/74", 128)
                                                                                                            } else {
                                                                                                                if (status === a++) {
                                                                                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                                } else {
                                                                                                                    if (status === a++) {
                                                                                                                        cm.sendNormalTalk_Bottom("#face0#她也知道此中机巧吗？", 37, 3004431, false, true);
                                                                                                                        cm.effect_Voice("Voice5.img/CH2/Idea/98", 128)
                                                                                                                    } else {
                                                                                                                        if (status === a++) {
                                                                                                                            cm.sendNormalTalk_Bottom("#face0#大家都心知肚明。只是没有说出来罢了。", 37, 3004433, true, true)
                                                                                                                        } else {
                                                                                                                            if (status === a++) {
                                                                                                                                cm.sendNormalTalk_Bottom("#face0#明知如此，她还乖乖地……", 37, 3004431, true, true);
                                                                                                                                cm.effect_Voice("Voice5.img/CH2/Idea/99", 128)
                                                                                                                            } else {
                                                                                                                                if (status === a++) {
                                                                                                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                                                } else {
                                                                                                                                    if (status === a++) {
                                                                                                                                        cm.sendNormalTalk_Bottom("#face0#……", 37, 3004431, false, true)
                                                                                                                                    } else {
                                                                                                                                        if (status === a++) {
                                                                                                                                            cm.sendNormalTalk_Bottom("#face0#看来你对她颇有微词啊。", 37, 3004433, true, true);
                                                                                                                                            cm.effect_Voice("Voice5.img/CH2/Carlyle/76", 128)
                                                                                                                                        } else {
                                                                                                                                            if (status === a++) {
                                                                                                                                                cm.sendNormalTalk_Bottom("#face0#是啊，可不仅仅‘微词’而已呢。", 37, 3004431, true, true);
                                                                                                                                                cm.effect_Voice("Voice5.img/CH2/Idea/100", 128)
                                                                                                                                            } else {
                                                                                                                                                if (status === a++) {
                                                                                                                                                    cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                                                                                                                                                    cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                                                                                } else {
                                                                                                                                                    if (status === a++) {
                                                                                                                                                        cm.eventSKill(0);
                                                                                                                                                        cm.warp(993140040, 0, false);
                                                                                                                                                        cm.setInGameDirectionMode(false, true, false);
                                                                                                                                                        cm.setStandAloneMode(false);
                                                                                                                                                        cm.updateInfoQuest(37400, "01=h0;10=h0;11=h1;02=h0;12=h1;04=h0;13=h0;05=h1;14=h1;06=h1;15=h1;07=h1;08=h1;09=h0");
                                                                                                                                                        cm.updateInfoQuest(37400, "01=h0;10=h0;11=h1;02=h0;12=h1;04=h0;13=h1;05=h1;14=h1;06=h1;15=h1;07=h1;08=h1;09=h0");
                                                                                                                                                        cm.updateInfoQuest(37414, "dir=1");
                                                                                                                                                        cm.npc_LeaveField("oid=770669");
                                                                                                                                                        cm.npc_LeaveField("oid=770669");
                                                                                                                                                        cm.npc_LeaveField("oid=770670");
                                                                                                                                                        cm.npc_LeaveField("oid=770670");
                                                                                                                                                        cm.npc_LeaveField("oid=770671");
                                                                                                                                                        cm.npc_LeaveField("oid=770671");
                                                                                                                                                        cm.dispose()
                                                                                                                                                    }
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                    }
                                                                                                                                }
                                                                                                                            }
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};